decodes params for get request