first pass at changing channel ids to ints, and expanding how to handle open/line state reset