sync stderr as well as stdout