Converts refs to environmental status
Add a filtering argument in list