added offline to model api