re #2 prepared a working updated C plugin