cmd.c:  WIP