improved error dialogs