split internal coap listener to handlers