changed notification function
changed logging and cookie handler selection