fixed some incorrect references to plugin functions