link external references, autodetect doesn't work