WIP: get plugin initialization working with the new types