clean up package preamble generation