detect previous versions