swap output to its own file