updated demo to reflect api changes