switch cases left are command, externals and unknown