deal with unknown context
changed lm_predict to fit new specification