the correct way to build deps lib