threaded and non-threaded builds