write error messages to file
preserve decks and backgrounds when upgrading xmage