add a q parameter parser so that these parameters can be sent in as an array