changed siteconfig to take a DynamicEnvironment