add reduce_mdf script