update to complement changes in plugin.php