fixing some errors when trying to run servers