move the version checking code to initialize (so it is the first thing called)