update asr related code after latest API changes