split up params and routes