refactor urls