Use own promise methods when extending to file API