refactor; split routes, params, config into separate files