preferences threaded - still got a bug