move request to separate file