cleaned up channel interface.