offline mode added