add beforeWith to transform param for cases