allow parameters to conditionally be lists