updated the use of deasync