added control of response code for bind response