added the rir generator