some bug fix attempts
parameterising channel