tidy up of url