added version checking for redis