added threading and additional routes
added threading and additional routes