moving threads to service