update configuration loading for deployment modes