cleanup of packet json handling, and channel packet handling now works