adding stats dir, stats server proto/api