replaced AttachmentStore with sharedStore