decode glob refs
crummy decode of code refs
decode ref references
decode regexes