setting correct server type