finalize the extension