added initial server code.