attempting to implement coap layer