plugin: switching hazelnut to use the Plugin class (wip)