active channel fix and line endings