adapt some packages