remove unused modules and sources