changed channel buffer size for msgChan to 10