adjust references to library code