added sample server implementation