supporting query parameters in urls. Fixes #40