move the annexb decode utility to protocol.