avoid buffering output before sleep