addin is now able to register functions with optional args