added way to set and restore SM in Ant