check version
put the version check in