basic layout for client server model

needs a lot of work