fixes for google app engine