move to global coap object