decide whether to search for messageBags or use old method