does this run as is?
nearly working copy
I think this compiles