using directory environments