generalize assembly plugin