dotted reference extractor; needs more tests