adding multiagent support. Doesn't work yet though