add RegisterPartial and RegisterPartials