working on offline models