adjusted plugins to new API