untested generic way of adding parameters