switch from api to local data