expose url re-writing function