moved base url handling into download task