made offline mode work again