added logging for index.php