sort out multivalue params