migrate core module to maven and fix libs