minor tweaks
another attempt to fix the flood protection, and unrelated tweaks