single run working, finished output writing