get rid of unnecessary packages