updated code list
better session resume and channel handling