clunky, inefficient mechanism for associating filenames with libraries