add threads module in pom.xml