better detection in .nmdrc