threads are permitted to use the files stdio and stderr to output complete lines only
this function is experimental