fix cerr output