upd logger, encrypt protocol