remove unwanted sources from lib