added singleton flags for length/shorten