made didChangeLibrary public so we could test it and not fail randomly