thanks to async having trouble retrieving values from functions implementing requests