split large file Engine.php