replaces direct use of StatCollector
optimizes imports