add version checks