moves request into routes