some work fixing segfault when removing package that is not installed