added library refresh functionality