create log length field and length update capacity

Lets give this one a try.