cleanup coap with helper