change updatecache to split out attachments