fix 989 - main engine