brought gibbs_prep funcs up to latest tm package version