moved notifications to main thread