migrate statistics module to maven and fix libs