cwc: use list for ep_sections rather than an array
cwc: add support for the key state per section