improve session version management