change stat-server to cleaner interface