migrated to new plugin api with cmake compilation