changed threads flag and default value