refactor exit status
improve display_errors method