move environmental properties to extension method