move site out of compiler.cpp