fixes for index.php