some logic cleanup. move url splitting logic to queryParams.parse