added server-side for multiplayer