replace libraries with submodules