change scan count from 50 to 20 - should fix #172, fix #212