cleanup update managed version code
test current version separate from testing if version exists