add commandline mode