add commandline handler