move to single state multithread service.