client for CoAP with some changes