some of the guts of VarImp for SpeeDRF