change order of checks in notify function
fix autorename for change from linked to imported attachment