added "else if"s for cmds