adding better output for REX