removes yet further unused packages and adds package dependencies locally