process 1 attachment at a time