redesign the lib-dirs in 3