prep for threaddata