added async functionality for fetches