added logging; treated, maybe fixed, predict timouts