work for demo, lots of extraneous debugging too