suport threads and workers config