simplify engine.rb
Merge pull request #773 from toadkicker/engine_tuneup

simplify engine.rb