added root_loc variable to pass to require() and site constructor