server/client thread based architecture