make riff tool compatible with rif4