use in and out channel to process and send msg.