moved redundant display_errors handling into protected function