make the callback in offlinePlay optional