fixed lastsaid and linecount to work with multiple channels