added registerUpdateHandler