introduces threads
add missing routes
add validation for thread