add safety for version check