wip 2 plugin architecture