improve ping/pong with a by using a max_lag config