global rule switch added
a working demo