added logging to the engine
.
.
.