Fix multiplayer block/lag issues, implement fog api