Filefactory: added offline pattern