some amendments for index.php (blog) but incomplete