cleanup, and a little stats