prettier imp. of getref and getc + hlint + lookup