updated flash config to erase unlock flash