add conf support for command line usage