fix for offline running