using net/url for sanity. thanks mhrivnak