adding initial server code