added version check