fix index.php, change settings to config API
yeah