fix a broken case statement
add a base for tab completion