changes to plugin initialisation
grr
extended logging