mex fixes to remove testing and bug fix for channel