miss the call to SetAppMainEvents?