pre-wrapper generation