some improvements to urls