polish up the write hook a bit more