move to using simple threads