debugging a reading/writing problem