move all logging to the CLI