added ability to fetch attachments from api