bugfix: command parameters were not sent to functions using the new api