move the notification to saveToFile