use enum for state in LocalChannel
use enum for state in EmbeddedChannel