implement num threads for sites