Preparing file object methods for better api