arg checking and thread group creation