added self to plugin