Added url util that is somewhat ugly