modified plugin.php