updated to use channel key