java server with modification for TTT