assign IP properly if we see the right header