auto-threshold update - lets hope it works properly