improve attachment saving
set scoping on newly saved attachments