statserver working, encapsulated threading, for low latency