add attachment construction