Init cmds when detecting  prefixes