add attachment support-2