batch retrieving messages