migrating over some stuff from googls web startup kit