changed channel
added another debug flag
removed old reference to pthreads