use parseCmds in If