open( STDERR, ">>$debug_output" ) or die "Can't write errlog: $!\n";