updated koolie to use new env logic