rebind cleanup