added save and load methods that filter for library instances