only run as many threads as we have logins