convert to new plugin format