fix unix line endings
clean up mailboxes tree vs array