add basic server code