added checks for the properties - if envs are configured badly, some property may be absent