plugins function

Plugin system for cxxfunction