cleanup notification code