switch core detection to module