modify api for offline fetch.