some changes to make the blog script run on remote web server