changed basic structures of the server