fix to work with new write_callback signature
2 files changed