added notify function and settings