various minor fixes and one major: now runs on dev_appserver