partial work on client,channel,miner integration