add getter attribute: length, version update