move helper methods that print to stdout to the commandline project, as they are not useful for core