renamed offline to offlineMode to avoid confusion