another file handling fix