filter modified to encrypt response