global variables for async functions