remove reliance on registerExtension

(no more registerExtension hack)