only run in command line mode