expose threading functions (fix for #110)

expose threading functions (fix for #110)