sorting out environments