url building into separate file