made test code for reading inboxes