more bug fixes with mongo, grrrrr