added resetEngine