prepatch stuff