add environment save/load.