simplified code by using envs_dir as provided by config module