build file fix. added a onRegistering notification callback on initialization.