removed lm support since estfun() does not work properly with those objects