add base class for plugins