using :data hash
getting max revision
update serial number
some spec