added ability to register a listener for the fence change