fix message iterator bugs and change configs