incapsulate core.php