changed ChannelType to uint64 (ulong)