added attachment type back in