update file and non prompt