snapshot for switching workspace