add facilities to work with attachments