add the cli interface for unflattening