added error reporting in dialog interface