upgrade to new plugin format