switch to using demo for running example codes