receiveing and sending responses