support hash and array for query parameters