add version checking so that it does not break