fixing up the file object