update core.php