stage 1 of major changes to use a global site object to avoid passing around and tracking the site variable.