slightly more intelligent line buffering

basic channel support