added register handler