previous model copied to other file and main file restored to original state