move url helpers to a separate file