move functions to routes
move functions to routes
move functions to routes