add to rules tables various functions for adding rule-computed values to
models