remove gateway if it existed previously