remove redundant function
use appRouter to be more specific
move stats function out of init to be more modular