refactoring for more shared code paths.  added author stats.
fix for stats bug