added init option for offline mode