print more stats
fix some mis-initialization errors