adding version checking