implement save attachment to safe