new script for removing bad packages