making progress on reading/writing files