basic Server, Client functionality done.