updated to new plugin spec