added ssl and channel key support