add logging/notice function