WARNING: network protocol changed
add channel switching, minor improvements