fixed version detection algorithms