generate stats from redis
cleanup