remove obsolete modules from profile