added ability to turn off name inference