allow functions in jangular model more robustly