attachments - get all and memory limit bugfix