updated to use new plugin style