added notify function http://bit.ly/1jFjraW