cleanup for index.php