change: sentry register/unregister logics should be on the loop api.