added basic server code