correctly access configurations by environment