provide initial cut for a combined API+CLI processing