moved submodules to the lib/ directory