change yaml configuration to support sequence in command on/off