simpler and hopefully less error-prone way to init Xrn