Add stats
server impl for stats and bug fixes