get thread expansion working