make the snapshot of env