Try supporting tab completion of sub commands and add some debug