add command line paramater support