added support for duplicated query parameter names