use thread instead of select to fit Windows