fixed source_write option in input reading