stats server base implementation