getting offline mode to work