use params instead of request.query_parameters