adding methods to modify files wihtout internet connection