ugh, realized i reinvented urljoin()