add RegisterFct method