initial implementation of library replication