adding filter to allow the response to be modified

fixes #59