adding various functionality to plugin