changed connection to send only one notification by a time