use settings instead of ENV