add flag to switch mode (identity, closure, unfolding)