version checking before registering events