added ability to serve attachments