working on the CLI interface