modify model detection in modSearch