working on threading server