adding file infos to file object