maybe I can just copy paste the tutorial server code...