edit getMessages to handel Bbox