changed length resolver to PlainTextLengthResolver