rough outline / beginning of CLI