update url construction to reduce repeated typing