refactor: filter -> forEach to load environments