send debug to stdout, errs to stderr