preference for offline mode added