add threads as dependency