thread pool and login implemented