fix NameErrors in exampleplugin