fixed errors on non-gae platforms