added thread limit idea