get rid of useless modules.