client-side and server-side communication
client/server communication finally works but slow

when accent folding is enabled, extreme slow response
cleaning up the code