added a little convienience to demo script