edit mager.php