new envvars and startup logic