add init method to Offline