work on asynch in api