remove printprompt warnings
finalize
revert
passed redirect
clean up swap files