add a status response handler