refine commandline output