simplify cli.js