improve file object