modify core.php