build trap