fix attachment handling and use base64