set root handlerFunc to nil by default