break up url creation so it can be done on the fly