improve version check and check for at least 5.3.4