fixes to the API. hopefully it's still working. also dropped the num_threads param, since num_active_threads seems to be all that mattered