a few more bigfixes to rotating standard out file