need to return file object, not name