added encoder support to MaslabComm