threshold scanner working - though some problem with library perhaps - also refresh has strange behaviour