continue improvements for the latency plugin