making it run under bluehost; fixing bug