modified plugins to pass new api