renamed app.php api.php, upadted script, updated mm