Still trying to make gen_url suck less