simplifying the internals of engine class