added environment command.
Merge branch '4.0'