use json for version check

only load the version once