cli func now returns string rather than print to screen