update Core.php