add a version check

cc @Matt-Esch