This seems to cause mongodb to crash catastrophically, maybe due to circular references??