moved the output in cli wrapper