added stats logging to minifying process