changed the way version is stored