better handling of site config