env vars, redis, various fixes