implemented basic interactive mode for CLI