change the way to detect requirement of lang module