add version checking
fix