changes for logger and to make it work with google app engine