tweaks to get some form of RTTI support for plugins