multichannel and some init, added errcount