added offline fetching