added new Thread that manages channels threads
changed list of channels to map of channels