cleans up index.php