move tm, sites to globals