process file reads correctly