extend threading support