separate url helper from main class