got the request object, writing to file