replaced resumer with string-to-stream