added fallback to api call