set query params based on request