added very simple server code