filter environment according to the selected plan. close #80