initial prototype with CLI version