Add state to archive

modify updateArchive() to give the state the definition is in