generated code is now complete
will need small (I hope) corrections to match the
final version of the static code (to be written
next)