add notification function "n" for long running tasks