first steps towards making the generator available to R as a user-supplied generator