add parameters to directives