REX routines are currently broken, use alternatives