add bayes hack to resume