correcting async usage in proxy