better output handler response header check