got file attachment working