modify new download process to handle query args and fragments