process notiry in main thread