added version checking