so extension will be deleted right after return from this function.. but ApiNotificationObserver will still have a pointer to it - looks like a bug. Am I missing something?