updated upgrade routine and increased version number