add some exc handling in the server, and some better diagnostic msgs