add command-line interface