simplify buildUrl