a bit modification of index.php