attachment processing