add get_state from channel (ongoing)

TODO: set_state to channel