write debug to stderr om stead of stdout