bugfix- response.pid should be set