added context for offline script