cleaned up the code. found another channel for test data. now using tentensystem.channels.keys() for channelnames.