rebuild wrapper