rebuilding the library under the new architecture