added message length field