Domain and IP logic fix, regioc fix, filename as domain fix