trying another way of handeling attachments