updated for saving only installed libs