implemented the missing onRebind() callback