namespacing the version check so it can be loaded in 1.8.7