add RegisterFunctions