removing warnings to instead write to stderr
cleaning module import - will need more work
small fix for the detection of channel type