fixing offline, now working