playing around with async function for API script call