changes to plugin utils and plugin.php