refactor ChainNode, handle client connections