Modified DefaultCodec about decodeCommand, but untested