updated demo to take advantage of improved parser hooks, also fixed bug in
parser hook.