add threads plugin