added plugin functionality