half way thru the demo2 example...