preliminary rework to external plugins to support rb299
fixed activation events for rb296
finish restructuring for rb296