added middleware for POST-processing