added switch-generation and rollback operations