updated the command-line version