refactor of CryptoTransportLayer constructor and periodic ip checker