fix how arguments are passed to the plugin