core.class.php update