made a new client which is to be used with a singlethreaded server.
this is a start point for a multiclient server instead of writing one
from scratch