fix some multiplayer issues and config system