write response file