added a CLI interface