refactor rutas