slight mod to index.php