autocomp refacto - actored out getting typed subcmd