add ref counter to la
detect ca-bundle.crt for chain cert to use in dtls connections
add channel logical direction