fixing the engine factory to provide the engine properly
Merge pull request #180 from doowb/master

Fixing engine factory to return the underlying engine properly.