Switching from extension to engine and back again