register a handler only when installed