new implementation(loss, percentiles, ping added)