fixing a couple things to make the server run again