extra parentheses around imported names
factor out more code into record-ref