dev: optimize offline mode