cleanup+print support+better handling attachments