restoring libraries