reorg main