setting up the engine