fix use of tee in one liner, minor formatting