scripts for dealing with xrf_abbs