modify proxy handler