cleaned up some platform messages during errors
added some logging, trying to track down a decryption error that I can't reproduce now