replaced core.php