1.4.0 - add back type inference that was mistakenly removed in 1.3.0