cleanup the output of the -i flag