switched rawencodeinterface__ and encodeinterface__.