adding tempscope stuff to linker