simplify the command-line api