fixed get_threads calls