add function of CoapHandler
cleanup typo in coap handler