Update core/engine.php

extend theme with new object