replaced some client server stuff with a legacy code example