fix registerBlock deprecations