Engine rewrite for multiverse support