Env should be externally set