add file method to requests
refractor