cleaned up some url code