#7 added middleware to merge notice with message