many small  improvements, error dialogs