found BSON-realted bug, has sth. to do with memory deallocation. will fix after holidays.