little bit of the Plugin code