catch NameError raised by RG 2.1 (@drbrain)