reorg how line-channel code flows