added support for text to RIR