added demo for promise branch