disconnect rewrtie