getting all messages only after the tree count is recieved