fix some packaging bugs