changed the bahavior of when to send notifications with http/https