added guard env