some refactoring, agents now collaborate to pass through fences