refactoring make.php