updated notify method. still need to fix automation