add patch from pabs to make pre stuff wrap