updated demo
updated to use payload