pass the listener ref to the handler