added key management to transport protocol;