added logs in unbind