added support for attachments, but only works for singale attachment