If theres bad untreatable rust, cut it out, media blast or wire wheel any surface rust and por-15 the area prior to installing the new rails. While your at it, por the inside of the new rails too. After everythings welded uo, you could drill some access holes thru the floor pan and spray some undercoating into the rails and then snap in some rubber plugs to cap the holes.