async fix for deadlock